package org.zsqx.bean;

import java.io.File;
import java.util.Date;

import javax.persistence.Table;

import cDao.annotation.FieldTypeAnnotation;

@Table(name = "usr_report")
public class UsrReport {
	@FieldTypeAnnotation(colum = "re_num", fieldType = Integer.class, isKey = true)
	private Integer reNum;
	private File rePic;
	private Date reTime;
	private String reStu;
	private String reId;
	private String reArea;
	private String reMan;
	private String reType;
	private Date reBegin;
	private Date reEnd;
	private Integer reStatus;
	private String reSrc;
	private String reImage;
	private String reTown;

	public Integer getReNum() {
		return reNum;
	}

	public void setReNum(Integer reNum) {
		this.reNum = reNum;
	}

	public File getRePic() {
		return rePic;
	}

	public void setRePic(File rePic) {
		this.rePic = rePic;
	}

	public Date getReTime() {
		return reTime;
	}

	public void setReTime(Date reTime) {
		this.reTime = reTime;
	}

	public String getReStu() {
		return reStu;
	}

	public void setReStu(String reStu) {
		this.reStu = reStu;
	}

	public String getReId() {
		return reId;
	}

	public void setReId(String reId) {
		this.reId = reId;
	}

	public String getReArea() {
		return reArea;
	}

	public void setReArea(String reArea) {
		this.reArea = reArea;
	}

	public String getReMan() {
		return reMan;
	}

	public void setReMan(String reMan) {
		this.reMan = reMan;
	}

	public String getReType() {
		return reType;
	}

	public void setReType(String reType) {
		this.reType = reType;
	}

	public Date getReBegin() {
		return reBegin;
	}

	public void setReBegin(Date reBegin) {
		this.reBegin = reBegin;
	}

	public Date getReEnd() {
		return reEnd;
	}

	public void setReEnd(Date reEnd) {
		this.reEnd = reEnd;
	}

	public Integer getReStatus() {
		return reStatus;
	}

	public void setReStatus(Integer reStatus) {
		this.reStatus = reStatus;
	}
	public String getReSrc() {
		String src = "";
		if(reSrc!=null){
			if(reSrc.equals("mobile"))src = "手机客户端";
			else if(reSrc.equals("wap"))src = "手机网站";
			else if(reSrc.equals("web"))src = "互联网";
			else if(reSrc.equals("sms"))src = "短信";
			else src = reSrc;
		}else{
			src = null;
		}
		return src;
	}

	public void setReSrc(String reSrc) {
		this.reSrc = reSrc;
	}

	public String getReImage() {
		return reImage;
	}

	public void setReImage(String reImage) {
		this.reImage = reImage;
	}

	public String getReTown() {
		return reTown;
	}

	public void setReTown(String reTown) {
		this.reTown = reTown;
	}
}
